package com.business.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.business.mapper.T_orderMapper;
import com.business.domain.T_order;

@Service("t_orderService")
@Transactional
public class T_orderService{
	private static Logger log = Logger.getLogger(T_orderService.class.getName());

	@Resource
    private T_orderMapper t_orderMapper;


	public int save(T_order obj){
		 return t_orderMapper.save(obj);
	}

	public int update(T_order obj){
		return t_orderMapper.update(obj);
	}

	public int delete(T_order obj){
		return t_orderMapper.delete(obj);
	}

	public T_order findById(T_order obj){
		return t_orderMapper.findById(obj);
	}

	public List findAll(T_order obj ){
		 return t_orderMapper.findAll(obj);
	}

	public int findCountAll(T_order obj ){
		 return t_orderMapper.findCountAll(obj);
	}
}
